// Copyright 2009 StarCite Inc.  All rights reserved.
// Node.java 3:48:58 PM danny.liu
package com.billowsoft.lab.algorithm.linkedlist;

/**
 * @author danny.liu Apr 24, 2012
 * @version 1.0
 * 
 */
public class Node<T> {

	private T data;

	private Node<T> next;

	/**
	 * @param data
	 * @param next
	 */
	public Node(T data, Node<T> next) {
		super();
		this.data = data;
		this.next = next;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public Node<T> getNext() {
		return next;
	}

	public void setNext(Node<T> next) {
		this.next = next;
	}

}
